/*
 * @Author: chengsl
 * @Date: 2023-01-10 14:29:30
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-10 14:29:32
 * @Description: 玫瑰图 WidgetPieNightingaleRoseArea
 */
export default {
  legend: {
    top: 'auto',
    show: true,
    left: 'auto',
    right: 'auto',
    bottom: 'auto',
    orient: 'horizontal',
    textStyle: { color: '#fff', fontSize: 14 },
    itemWidth: 15
  },
  toolbox: { show: true, feature: { mark: { show: true } } },
  series: [
    {
      type: 'pie',
      radius: ['10%', '50%'],
      center: ['50%', '50%'],
      roseType: 'area',
      itemStyle: { borderRadius: 8 },
      data: [
        { name: '搜索引擎', value: 1048 },
        { name: '直接访问', value: 735 },
        { name: '邮件营销', value: 580 },
        { name: '联盟广告', value: 484 },
        { name: '视频广告', value: 300 }
      ],
      label: {
        show: true,
        formatter: '{a|{b}：{c} }',
        rich: {
          a: {
            padding: [-30, 15, -20, 15],
            color: '#ffffff',
            fontSize: 14,
            fontWeight: 'normal'
          }
        },
        fontSize: 14
      },
      labelLine: { show: true }
    }
  ],
  title: {
    text: '',
    show: true,
    left: 'left',
    textStyle: { color: '#fff', fontSize: 20, fontWeight: 'normal' },
    subtext: '',
    subtextStyle: { color: '#ffffff', fontWeight: 'normal', fontSize: 12 }
  },
  tooltip: {
    trigger: 'item',
    show: true,
    textStyle: { color: '', fontSize: 12 }
  },
  color: [
    '#0060FF',
    '#3BD6FF',
    '#948BEA',
    '#F78D94',
    '#FF7A45',
    '#FCBB61',
    '#36CFC0'
  ]
}
